@extends('agent.mainlayout')
@section('title')
    <div class="title"><span>防伪码管理></span></div>
@endsection

@section('content')
        <!-- start 商品发布第二步-->
    <div class="list8" style="display: ">
        <div class="header">
            <a href="{{url('center/securitycode/in')}}"><p>入库 ( <span></span> )</p></a>
            <a><p class="active">出库 ( <span>{{$res['total']}}</span> )</p></a>
        </div>
        <div class="table">
            <!--入库-->
            <table class="table1">
                <tr>
                    <th>序号</th>
                    <th>防伪码</th>
                    <th>时间</th>
                </tr>
                @if(!empty($res))
                    @foreach($res['data'] as $v)
                <tr>
                    <td>{{$v['id']}}</td>
                    <td>{{$v['code']}}</td>
                    <td>{{$v['created_at']}}</td>
                </tr>
                    @endforeach
                @endif
            </table>
        </div>

        <div class="del">
            <div class="bot">
                @if($res['prev_page_url'])
                    <p class="prev"><a href="{{$res['prev_page_url']}}">上一页</a></p>
                @endif
                <ul>
                    @foreach($res['pageNoList'] as $v)
                        <li @if($res['current_page'] ==  $v )class="active_list" @endif ><a href="/center/securitycode/out?page={{$v}}">{{$v}}</a></li>
                    @endforeach
                </ul>
                @if($res['next_page_url'])
                    <p class="next"><a href="{{$res['next_page_url']}}">下一页</a></p>
                @endif
            </div>
        </div>
    </div>
    <!-- end 商品发布第二步-->
@endsection
